xen.git
19 years ago[IA64] Fix save/restore
awilliam@xenbuild2.aw [Mon, 15 Jan 2007 05:18:38 +0000 (22:18 -0700)]
[IA64] Fix save/restore

Using the new hypercall path, scratch registers are not saved/restored.

So after returning from hypercall, r20 may contain garbage data.
This triggered General Exception.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Fix multicall hypercall
awilliam@xenbuild2.aw [Sun, 14 Jan 2007 21:58:51 +0000 (14:58 -0700)]
[IA64] Fix multicall hypercall

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Implement hyper_get_psr
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 20:01:25 +0000 (13:01 -0700)]
[IA64] Implement hyper_get_psr

Mov from psr is used frequently by xeno.

Signed-of-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Fix xencomm_arch_hypercall_suspend
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:56:20 +0000 (12:56 -0700)]
[IA64] Fix xencomm_arch_hypercall_suspend

This hypercall is changed to new hypercall mechanism

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Simplify lazy cover algorithm
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:11:11 +0000 (12:11 -0700)]
[IA64] Simplify lazy cover algorithm

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Hypercall optimizations
awilliam@xenbuild2.aw [Thu, 11 Jan 2007 23:56:58 +0000 (16:56 -0700)]
[IA64] Hypercall optimizations

provide hypercall the same path with system
most of scrach registers don't need to be saved/restored
it is good for performance

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] merge increment_iip
awilliam@xenbuild2.aw [Thu, 11 Jan 2007 21:42:24 +0000 (14:42 -0700)]
[IA64] merge increment_iip

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Can't inject event, when guest is executing rfi
awilliam@xenbuild2.aw [Thu, 11 Jan 2007 21:27:39 +0000 (14:27 -0700)]
[IA64] Can't inject event, when guest is executing rfi

Can't inject event, when guest is executing rfi, and both
both PSCB(v, ifs) and regs->ifs are valid

It's very rare case, but I did catch it.
It caused domain0 crash

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Use original itir when inserting into the single-entry TLB
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:52:54 +0000 (12:52 -0700)]
[IA64] Use original itir when inserting into the single-entry TLB

http://lists.xensource.com/archives/html/xen-ia64-devel/2006-11/msg00349.html

The real VHPT insertion is done based on the machine PTE returned from
translate_domain_pte, which does the appropriate offset calculations.

However, the insertion into the one-entry TLB uses the original PTE, but
the page size has been reset to PAGE_SIZE [1].  Thus the entry in the
one-entry TLB incorrectly maps the PAGE_SIZE sub-page which was faulted
on to the PAGE_SIZE sub-page at the bottom of the superpage.

I think it makes most sense to simply use the original itir when
inserting into the single-entry TLB, as per attached patch.  I've moved
the vcpu_set_tr_entry calls up a level into vcpu_itc_d and vcpu_itc_i;
the third caller previously used the 4 flag to specify "don't do that".

[1] In fact, this is enforced twice, once in translate_domain_pte and
again in vcpu_itc_no_srlz.

Signed-off-by: Matthew Chapman <matthewc@cse.unsw.edu.au>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Make crash command happy
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:14:05 +0000 (12:14 -0700)]
[IA64] Make crash command happy

As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash.

Signed-off-by: Dave Anderson <anderson@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Resolve a race in tlb_track_search_and_remove()
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 19:03:38 +0000 (12:03 -0700)]
[IA64] Resolve a race in tlb_track_search_and_remove()

When tlb_track_search_and_remove() is about to remove a found entry,
another cpu might update p2m entry and insert the entry right before that.
It must be aware of it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] fix domain_flush_vtlb_all()
awilliam@xenbuild2.aw [Fri, 12 Jan 2007 00:03:25 +0000 (17:03 -0700)]
[IA64] fix domain_flush_vtlb_all()

It might called by another domain's vcpu.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Clean up build warnings
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 17:37:41 +0000 (10:37 -0700)]
[IA64] Clean up build warnings

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] Move cmdline.c to linux-xen
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 17:35:24 +0000 (10:35 -0700)]
[IA64] Move cmdline.c to linux-xen

Need to clean up some build warnings.  Probably should have been moved
last time it was modified.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] Add empty nmi.h
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 15:48:50 +0000 (08:48 -0700)]
[IA64] Add empty nmi.h

Necessary to build

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] Remove bogus linux/kernel.h include
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 15:47:36 +0000 (08:47 -0700)]
[IA64] Remove bogus linux/kernel.h include

This seems to be an extraneous include and causes problems when
pulled into asm files.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 15:40:47 +0000 (08:40 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] Clean up VTi memory initialization logic
awilliam@xenbuild2.aw [Wed, 10 Jan 2007 15:00:50 +0000 (08:00 -0700)]
[IA64] Clean up VTi memory initialization logic

This patch makes the logic in setup_guest() more clear.
domain_translate_gpfn_list() is now gone, so we can make
memory initializtion code simple.
Xend passes memory size which is a sum of normal memory
size and GFW memory to QEMU and Libxc. This patch fixes
this issue.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
19 years ago[XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
kfraser@localhost.localdomain [Wed, 10 Jan 2007 11:09:21 +0000 (11:09 +0000)]
[XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PATCH] kexec/kdump: remove unnecessary incusion of asm/fixmap.h
Ian Campbell [Wed, 10 Jan 2007 09:39:24 +0000 (09:39 +0000)]
[PATCH] kexec/kdump: remove unnecessary incusion of asm/fixmap.h

I think this a legacy of an older revision of this code,
but asm/fixmap.h does not seem to be needed in
asm-x86/x86_32/kexec.h or asm-x86/x86_64/kexec.h

That is, neither of these incarntations of kexec.h seem
to do anything related to fixmap directly or indirectly.

Signed-off-by: Simon Horman <horms@verge.net.au>
19 years ago[LINUX] Clarify comment in xen_machine_kexec_setup_resources().
Ian Campbell [Wed, 10 Jan 2007 09:39:24 +0000 (09:39 +0000)]
[LINUX] Clarify comment in xen_machine_kexec_setup_resources().

Noticed by Horms.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Ignore evtchn_upcall_mask and initialise to zero.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 17:43:13 +0000 (17:43 +0000)]
[HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUpdate sched-credit test to match new format from xm sched-credit.
Ewan Mellor [Tue, 9 Jan 2007 17:38:48 +0000 (17:38 +0000)]
Update sched-credit test to match new format from xm sched-credit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoThis simple patch allows domains created in the xm-test suite to be
Ewan Mellor [Tue, 9 Jan 2007 17:25:28 +0000 (17:25 +0000)]
This simple patch allows domains created in the xm-test suite to be
created as managed domains using either a parameter to the
XenTestDomain() constructor or by setting the environment variable
XM_MANAGED_DOMAINS and running the tests with it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoAdd needed modules to the ramdisk if the modules exist on the current system.
Ewan Mellor [Tue, 9 Jan 2007 17:23:22 +0000 (17:23 +0000)]
Add needed modules to the ramdisk if the modules exist on the current system.
(i.e. the current system contains a modularized kernel)

Signed-off-by: Lynn Bendixsen <lbendixs@novell.com>
19 years agomerge
Ian Campbell [Tue, 9 Jan 2007 17:17:05 +0000 (17:17 +0000)]
merge

19 years ago[XEN] Kexec: Make some variables static.
Ian Campbell [Tue, 9 Jan 2007 17:15:29 +0000 (17:15 +0000)]
[XEN] Kexec: Make some variables static.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Kexec: Clean up ELF note construction to avoid multiply nested
Ian Campbell [Tue, 9 Jan 2007 17:15:28 +0000 (17:15 +0000)]
[XEN] Kexec: Clean up ELF note construction to avoid multiply nested
struct/unions and the packed keyword.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.
Ian Campbell [Tue, 9 Jan 2007 17:14:28 +0000 (17:14 +0000)]
[LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[TEST] Fix x86_emulate tests on x86/64 host.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 17:11:46 +0000 (17:11 +0000)]
[TEST] Fix x86_emulate tests on x86/64 host.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
kfraser@localhost.localdomain [Tue, 9 Jan 2007 16:59:52 +0000 (16:59 +0000)]
[XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
directly within the emulator as it is unavailable if the emulator runs
in x86/64 mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Remove unnecessary write barriers
Tim Deegan [Tue, 9 Jan 2007 16:49:16 +0000 (16:49 +0000)]
[HVM] Remove unnecessary write barriers
Using a volatile pointer saves us from the compier reordering these
writes, and the processor won't let them appear out of order.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoWhen booting via xm, only run the bootloader if it's in non-interactive mode:
Tim Deegan [Tue, 9 Jan 2007 13:24:45 +0000 (13:24 +0000)]
When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix xm create direct call to XendBootloader
Tim Deegan [Tue, 9 Jan 2007 13:24:44 +0000 (13:24 +0000)]
Fix xm create direct call to XendBootloader

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix bootloader = "pygrub" via 'xm create'.
Tim Deegan [Tue, 9 Jan 2007 13:24:43 +0000 (13:24 +0000)]
Fix bootloader = "pygrub" via 'xm create'.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix auto-bootloading via 'xm create'.
Tim Deegan [Tue, 9 Jan 2007 13:24:42 +0000 (13:24 +0000)]
Fix auto-bootloading via 'xm create'.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoSniff for Solaris if not specified. This allows Solaris domU's to automatically
Tim Deegan [Tue, 9 Jan 2007 13:24:41 +0000 (13:24 +0000)]
Sniff for Solaris if not specified. This allows Solaris domU's to automatically
boot correctly without fiddling with domain configs.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoPass in kernel/ramdisk settings to pygrub; if specified, don't try to use
Tim Deegan [Tue, 9 Jan 2007 13:24:40 +0000 (13:24 +0000)]
Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
grub.conf; this allows hands-off bootloading in the absence of a grub.conf.
It's also useful for specifying temporary changes etc.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix for pygrub path on Solaris.
Tim Deegan [Tue, 9 Jan 2007 13:24:40 +0000 (13:24 +0000)]
Fix for pygrub path on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XEN] Fill in some more opcode space in the emulator.
kfraser@localhost.localdomain [Tue, 9 Jan 2007 12:04:41 +0000 (12:04 +0000)]
[XEN] Fill in some more opcode space in the emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDo not call refreshShutdown in XendDomain for VM-list operations, as this
Ewan Mellor [Tue, 9 Jan 2007 11:52:15 +0000 (11:52 +0000)]
Do not call refreshShutdown in XendDomain for VM-list operations, as this
is unnecessary and expensive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Fix shadow memory tracking
Tim Deegan [Tue, 9 Jan 2007 10:50:46 +0000 (10:50 +0000)]
[HVM] Fix shadow memory tracking
Fixes a missing free from cset 13275, and a missing prealloc.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Tweak x86 emulator interface.
kfraser@localhost.localdomain [Mon, 8 Jan 2007 18:39:29 +0000 (18:39 +0000)]
[XEN] Tweak x86 emulator interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[linux build] Append $XENGUEST to kernel version.
Christian Limpach [Mon, 8 Jan 2007 17:38:47 +0000 (17:38 +0000)]
[linux build] Append $XENGUEST to kernel version.
This was lost in changeset 13286:c89384734c19.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Fix MAP target.
Ian Campbell [Mon, 8 Jan 2007 16:27:35 +0000 (16:27 +0000)]
[XEN] Fix MAP target.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Emulate relative near/short jumps, including Jcc.
kfraser@localhost.localdomain [Mon, 8 Jan 2007 15:52:53 +0000 (15:52 +0000)]
[XEN] Emulate relative near/short jumps, including Jcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:26:57 +0000 (14:26 +0000)]
merge

19 years agoFix signedness issue in private implementation of memmem().
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:25:28 +0000 (14:25 +0000)]
Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoMerge
Tim Deegan [Mon, 8 Jan 2007 14:25:14 +0000 (14:25 +0000)]
Merge

19 years agoUpdate .hgignore
kfraser@localhost.localdomain [Mon, 8 Jan 2007 14:24:42 +0000 (14:24 +0000)]
Update .hgignore

19 years ago[HVM] Add expansion-ROM boot support again.
Tim Deegan [Mon, 8 Jan 2007 14:24:30 +0000 (14:24 +0000)]
[HVM] Add expansion-ROM boot support again.
Boot info now stored at 0x9ff00; registers saved in HDD load code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[linux build] Build Linux kernels with output files in a separate directory.
Christian Limpach [Mon, 8 Jan 2007 11:33:45 +0000 (11:33 +0000)]
[linux build] Build Linux kernels with output files in a separate directory.
Use a single source tree (linux-2.6-xen) and use Linux' O= option to
make the build put output files in a
build-linux-$(LINUX_VER)-$(EXTRAVERSION)_$(XEN_TARGET_ARCH) directory,
making it possible to build both x86_32 and x86_64 kernels in the same
tree.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Emulate MOV imm->reg.
kaf24@localhost.localdomain [Sat, 6 Jan 2007 15:56:52 +0000 (15:56 +0000)]
[XEN] Emulate MOV imm->reg.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PV-on-HVM] Add definition of irq_to_evtchn_port().
kfraser@localhost.localdomain [Sat, 6 Jan 2007 12:56:58 +0000 (12:56 +0000)]
[PV-on-HVM] Add definition of irq_to_evtchn_port().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Improve information displayed by the xm sched-credit command.
Emmanuel Ackaouy [Sat, 6 Jan 2007 11:17:52 +0000 (11:17 +0000)]
[TOOLS] Improve information displayed by the xm sched-credit command.

The improvement is as follows.
 1. The display form is changed like the xm sched-sedf command.
 2. When -d option is omitted, information on all domains is
    displayed.

Examples:
 # xm sched-credit -d vm1
 Name                              ID Weight Cap
 vm1                                1    512  100
 # xm sched-credit
 Name                              ID Weight Cap
 Domain-0                           0    256    0
 vm1                                1    512  100
 vm2                                2    512   50

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
Ian Campbell [Fri, 5 Jan 2007 18:17:36 +0000 (18:17 +0000)]
[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
of the string.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix new XCHG emulation.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 18:01:20 +0000 (18:01 +0000)]
[XEN] Fix new XCHG emulation.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:51:51 +0000 (17:51 +0000)]
merge

19 years agoInitial support for HVM compat guests
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:51:07 +0000 (17:51 +0000)]
Initial support for HVM compat guests

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agomerge
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:46:14 +0000 (17:46 +0000)]
merge

19 years ago[BALLOON] Ifdef some x86-specific balloon init code.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 17:39:34 +0000 (17:39 +0000)]
[BALLOON] Ifdef some x86-specific balloon init code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoSupport for save and restore of compatibility guests
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:43 +0000 (17:34 +0000)]
Support for save and restore of compatibility guests

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agoPreliminary, likely incomplete and/or wrong, adjustments to shadow code.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:41 +0000 (17:34 +0000)]
Preliminary, likely incomplete and/or wrong, adjustments to shadow code.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for kexec.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:41 +0000 (17:34 +0000)]
Enable compatibility mode operation for kexec.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for trace buffer access.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:40 +0000 (17:34 +0000)]
Enable compatibility mode operation for trace buffer access.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_domctl. Also add logic
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:39 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_domctl. Also add logic
to switch a domain to/from compatibility mode (supposed to happen early
after domain creation only).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_sysctl.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:38 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_sysctl.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_xenoprof_op.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:37 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_xenoprof_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_acm_op.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:37 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_acm_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_platformop.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:36 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_platformop.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_grant_table_op.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:35 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_grant_table_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_sched_op and
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:35 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_sched_op and
HYPERVISOR_set_timer_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_multicall.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:34 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_multicall.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_set_trap_table and
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:34 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_set_trap_table and
HYPERVISOR_set_gdt.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoMerge vcpuop compat header creation
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:33 +0000 (17:34 +0000)]
Merge vcpuop compat header creation

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_vcpu_op.
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:33 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_vcpu_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_physdev_op and
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:32 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_physdev_op and
HYPERVISOR_event_channel_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_mmu_update and
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:31 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_mmu_update and
HYPERVISOR_mmuext_op.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoEnable compatibility mode operation for HYPERVISOR_memory_op,
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:31 +0000 (17:34 +0000)]
Enable compatibility mode operation for HYPERVISOR_memory_op,
HYPERVISOR_update_descriptor, HYPERVISOR_update_va_mapping. This also
introduces infrastructure to do argument translation.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdjust emulation code to deal with compatibility mode guests. This
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:30 +0000 (17:34 +0000)]
Adjust emulation code to deal with compatibility mode guests. This
includes enhancements to emulate_privileged_op() that aren't directly
related to such guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd page table setup and handling, including the creation of an m2p table
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:30 +0000 (17:34 +0000)]
Add page table setup and handling, including the creation of an m2p table
meaningful to compatibility mode guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoHandle shared info (having different layout for native and compatibility
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:29 +0000 (17:34 +0000)]
Handle shared info (having different layout for native and compatibility
mode guests) accesses.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoHandle the creation of startup info for compatibility mode guests. This
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:28 +0000 (17:34 +0000)]
Handle the creation of startup info for compatibility mode guests. This
includes a script to auto-generate checking or translation code between
native and compatibility mode hypercall argument structures.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd logic to generate headers reflecting the compatibility mode layout
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:28 +0000 (17:34 +0000)]
Add logic to generate headers reflecting the compatibility mode layout
of hypercall arguments. Provide infrastructure for accessing handles
passed from compatibility mode guests. Vector those hypercalls not
needing any translation to their native implementations.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd entry points for handling hypercalls from and returning to
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:34:27 +0000 (17:34 +0000)]
Add entry points for handling hypercalls from and returning to
compatibility mode guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoIntroduce _DOMF_compat and infrastructure as well as several conditionals
Emmanuel Ackaouy [Fri, 5 Jan 2007 17:32:00 +0000 (17:32 +0000)]
Introduce _DOMF_compat and infrastructure as well as several conditionals
dealing with operations that need to distinguish between native and
compatibility mode guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoAdd support to list VDIs and SRs in xapi.py
Alastair Tse [Fri, 5 Jan 2007 17:27:30 +0000 (17:27 +0000)]
Add support to list VDIs and SRs in xapi.py

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix some Xen API error declarations.
Alastair Tse [Fri, 5 Jan 2007 17:24:55 +0000 (17:24 +0000)]
[XEND] Fix some Xen API error declarations.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM] Sync the base memory reported by ROMBIOS with the e820 map.
Tim Deegan [Fri, 5 Jan 2007 16:28:42 +0000 (16:28 +0000)]
[HVM] Sync the base memory reported by ROMBIOS with the e820 map.
This stops Etherboot relocating itself onto the SMBIOS tables.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoCatch exception from dumpCore when inside refreshShutdown.
Ewan Mellor [Fri, 5 Jan 2007 16:11:49 +0000 (16:11 +0000)]
Catch exception from dumpCore when inside refreshShutdown.

Thanks to John Levon <levon@movementarian.org> for diagnosis and suggesting the
fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Remove an out-of-date comment.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 15:57:23 +0000 (15:57 +0000)]
[XEN] Remove an out-of-date comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add more instructions to the emulator.
kfraser@localhost.localdomain [Fri, 5 Jan 2007 15:54:06 +0000 (15:54 +0000)]
[XEN] Add more instructions to the emulator.

Fix prefix handling to ignore misplaced REX bytes and to grok both
kinds of REP prefix properly. These fixes are from Jan Beulich
<jbeulich@novell.com>.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix examples to have correct class names and error handling.
Ewan Mellor [Fri, 5 Jan 2007 15:52:58 +0000 (15:52 +0000)]
Fix examples to have correct class names and error handling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded session.last_active field. Removed the constructors and destructors for
Ewan Mellor [Fri, 5 Jan 2007 15:51:39 +0000 (15:51 +0000)]
Added session.last_active field.  Removed the constructors and destructors for
session and task classes -- these are implicitly added and removed, so we
should not have explicit constructors and destructors for them.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded NETWORK_ALREADY_CONNECTED error code to the documentation.
Ewan Mellor [Fri, 5 Jan 2007 15:50:20 +0000 (15:50 +0000)]
Added NETWORK_ALREADY_CONNECTED error code to the documentation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRecord the last shutdown reason for each VM in the store.
Ewan Mellor [Fri, 5 Jan 2007 15:38:01 +0000 (15:38 +0000)]
Record the last shutdown reason for each VM in the store.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename the 3DNOW and 3DNOWEXT API constants to THREEDNOW, so that they may be
Ewan Mellor [Fri, 5 Jan 2007 15:34:47 +0000 (15:34 +0000)]
Rename the 3DNOW and 3DNOWEXT API constants to THREEDNOW, so that they may be
used directly as identifiers in bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Fix EA calculation for POP <rm> when stack pointer is used as
kfraser@localhost.localdomain [Fri, 5 Jan 2007 14:44:58 +0000 (14:44 +0000)]
[XEN] Fix EA calculation for POP <rm> when stack pointer is used as
base of the EA calculation. It should be used *post* increment.

Original patch from Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix bindings for PIF_set_MAC and PIF.set_MTU.
Ewan Mellor [Fri, 5 Jan 2007 12:33:23 +0000 (12:33 +0000)]
Fix bindings for PIF_set_MAC and PIF.set_MTU.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix missing import, and a small tidyup.
Ewan Mellor [Fri, 5 Jan 2007 12:32:40 +0000 (12:32 +0000)]
Fix missing import, and a small tidyup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>